package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.domain.db.Announcement;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AnnouncementMapper extends BaseMapper<Announcement> {
    @Select("SELECT * FROM tb_announcement limit #{page},#{pagesize}")
    List<Announcement> findBlackList(int page, int pagesize);
    @Select("SELECT count(*) FROM tb_announcement")
    int counts();

}
